import { Component, OnInit } from '@angular/core';

declare var form: any;

@Component({
  templateUrl: './data.input.history.component.html'
})
export class DataInputHistoryComponent implements OnInit {

  // 表单
  fs: any = null;
  // 字典
  sideDic: any = null;

  constructor() {
    this.fs = new form.FormSideSimpleService('checkhistory', {
      orderObject: { lastTime: 1 },
      keyField: 'id',
      randomFields: ['id'],
      defaultQueryObject: { type: '数据导入' },
      foreignKey: 'dataid'
    });

    this.sideDic = new form.DictionaryService('d_input_type');
    this.sideDic.load('0');
  }

  ngOnInit() {
  }
}
